import Vue from 'vue';
class Tips {
  toast = null;
  startLoadingToast() {
    this.toast = Vue.prototype.$toast.loading({
      duration: 0, // 持续展示 toast
      forbidClick: true,
      message: 'Loading...',
      loadingType: 'spinner',
    });
  }
  closeToast() {
    this.toast.clear();
    this.toast = null;//释放变量内存
  }
}
export default new Tips();
